/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PanelRegistrarLibro.java
 *
 * Created on 16/05/2010, 01:03:37 PM
 */

package GUI.Bibliotecario.AdminLibros;

import LogicaNegocio.Controlador.ControlRegistrarLibro;
import com.toedter.calendar.JCalendar;

/**
 *
 * @author sebaxtian
 */
public class PanelRegistrarLibro extends javax.swing.JPanel {

    private ControlRegistrarLibro controlRegistrarLibro;
    public JCalendar calendario;

    /** Creates new form PanelRegistrarLibro */
    public PanelRegistrarLibro() {
        initComponents();
        controlRegistrarLibro = new ControlRegistrarLibro(this);
        calendario = new JCalendar();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        ventanaBuscarEditorial = new javax.swing.JFrame();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        textFieldBuscarEditorial = new javax.swing.JTextField();
        btnBuscarEditorial = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        tablaEditorialesBuscadas = new javax.swing.JTable();
        btnSeleccionarEditorial = new javax.swing.JButton();
        ventanaFechaPublicacion = new javax.swing.JFrame();
        jPanel2 = new javax.swing.JPanel();
        panelCalendario = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        btnSeleccionarFecha = new javax.swing.JButton();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel13 = new javax.swing.JPanel();
        jPanel18 = new javax.swing.JPanel();
        jPanel19 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        tablaAutoresBuscados = new javax.swing.JTable();
        jLabel19 = new javax.swing.JLabel();
        textFielCodigoAutorBuscar = new javax.swing.JTextField();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        textFieldSegundoNombreAutorBuscar = new javax.swing.JTextField();
        textFieldPrimerNombreAutorBuscar = new javax.swing.JTextField();
        textFieldPrimerApellidoAutorBuscar = new javax.swing.JTextField();
        textFieldSegundoApellidoAutorBuscar = new javax.swing.JTextField();
        btnBuscarAutor = new javax.swing.JButton();
        btnAgregarAutor = new javax.swing.JButton();
        btnLimpiarTablaAutoresBuscados = new javax.swing.JButton();
        jPanel20 = new javax.swing.JPanel();
        jScrollPane7 = new javax.swing.JScrollPane();
        tablaAutoresAgregados = new javax.swing.JTable();
        btnQuitarAutor = new javax.swing.JButton();
        btnLimpiarTablaAutoresAgregados = new javax.swing.JButton();
        jPanel15 = new javax.swing.JPanel();
        jPanel21 = new javax.swing.JPanel();
        jPanel22 = new javax.swing.JPanel();
        jLabel24 = new javax.swing.JLabel();
        textFieldCodigoAreaBuscar = new javax.swing.JTextField();
        jLabel25 = new javax.swing.JLabel();
        textFieldNombreAreaBuscar = new javax.swing.JTextField();
        btnBuscarArea = new javax.swing.JButton();
        jScrollPane8 = new javax.swing.JScrollPane();
        tablaAreasBuscadas = new javax.swing.JTable();
        btnAgregarArea = new javax.swing.JButton();
        btnLimpiarTablaAreasBuscadas = new javax.swing.JButton();
        jPanel23 = new javax.swing.JPanel();
        jScrollPane9 = new javax.swing.JScrollPane();
        tablaAreasAgregadas = new javax.swing.JTable();
        btnQuitarArea = new javax.swing.JButton();
        btnLimpiarTablaAreasAgregadas = new javax.swing.JButton();
        jPanel14 = new javax.swing.JPanel();
        jPanel24 = new javax.swing.JPanel();
        jPanel25 = new javax.swing.JPanel();
        jLabel26 = new javax.swing.JLabel();
        textFieldPalabraBuscar = new javax.swing.JTextField();
        btnAgregarPalabra = new javax.swing.JButton();
        jScrollPane10 = new javax.swing.JScrollPane();
        tablaPalabrasAgregadas = new javax.swing.JTable();
        btnQuitarPalabra = new javax.swing.JButton();
        btnLimpiarTablaPalabrasAgregadas = new javax.swing.JButton();
        jPanel12 = new javax.swing.JPanel();
        jPanel16 = new javax.swing.JPanel();
        jPanel17 = new javax.swing.JPanel();
        jLabel14 = new javax.swing.JLabel();
        textFieldISBN = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        textFieldEditorial = new javax.swing.JTextField();
        btnEditorial = new javax.swing.JButton();
        textFieldTitulo = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        textFieldAnoPublicacion = new javax.swing.JTextField();
        btnCalendario = new javax.swing.JButton();
        textFieldIdioma = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        btnAceptar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();

        ventanaBuscarEditorial.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        ventanaBuscarEditorial.setTitle("Buscar Editorial");
        ventanaBuscarEditorial.getContentPane().setLayout(new java.awt.FlowLayout());

        jLabel1.setText("Editorial:");

        textFieldBuscarEditorial.setColumns(15);

        btnBuscarEditorial.setText("Buscar");
        btnBuscarEditorial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarEditorialActionPerformed(evt);
            }
        });

        tablaEditorialesBuscadas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Codigo", "Nombre"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tablaEditorialesBuscadas);

        btnSeleccionarEditorial.setText("Seleccionar");
        btnSeleccionarEditorial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSeleccionarEditorialActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(textFieldBuscarEditorial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(btnBuscarEditorial)))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(btnSeleccionarEditorial)
                        .addGap(129, 129, 129))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(textFieldBuscarEditorial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnBuscarEditorial))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btnSeleccionarEditorial)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        ventanaBuscarEditorial.getContentPane().add(jPanel1);

        ventanaFechaPublicacion.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        ventanaFechaPublicacion.setTitle("Fecha Publicacion");

        jPanel2.setLayout(new java.awt.BorderLayout());
        jPanel2.add(panelCalendario, java.awt.BorderLayout.CENTER);

        btnSeleccionarFecha.setText("Seleccionar");
        btnSeleccionarFecha.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSeleccionarFechaActionPerformed(evt);
            }
        });
        jPanel4.add(btnSeleccionarFecha);

        jPanel2.add(jPanel4, java.awt.BorderLayout.SOUTH);

        javax.swing.GroupLayout ventanaFechaPublicacionLayout = new javax.swing.GroupLayout(ventanaFechaPublicacion.getContentPane());
        ventanaFechaPublicacion.getContentPane().setLayout(ventanaFechaPublicacionLayout);
        ventanaFechaPublicacionLayout.setHorizontalGroup(
            ventanaFechaPublicacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ventanaFechaPublicacionLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE)
                .addContainerGap())
        );
        ventanaFechaPublicacionLayout.setVerticalGroup(
            ventanaFechaPublicacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ventanaFechaPublicacionLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                .addContainerGap())
        );

        setBorder(javax.swing.BorderFactory.createTitledBorder("Registrar"));
        setLayout(new java.awt.BorderLayout());

        jPanel18.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Autores", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
        jPanel18.setLayout(new java.awt.BorderLayout());

        jPanel19.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        tablaAutoresBuscados.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Codigo", "Nombre"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane6.setViewportView(tablaAutoresBuscados);

        jLabel19.setText("Codigo:");

        textFielCodigoAutorBuscar.setColumns(15);

        jLabel20.setText("Primer Nombre:");

        jLabel21.setText("Segundo Nombre:");

        jLabel22.setText("Primer Apellido:");

        jLabel23.setText("Segundo Apellido:");

        textFieldSegundoNombreAutorBuscar.setColumns(15);

        textFieldPrimerNombreAutorBuscar.setColumns(15);

        textFieldPrimerApellidoAutorBuscar.setColumns(15);

        textFieldSegundoApellidoAutorBuscar.setColumns(15);

        btnBuscarAutor.setText("Buscar");
        btnBuscarAutor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarAutorActionPerformed(evt);
            }
        });

        btnAgregarAutor.setText("Agregar");
        btnAgregarAutor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgregarAutorActionPerformed(evt);
            }
        });

        btnLimpiarTablaAutoresBuscados.setText("Limpiar");
        btnLimpiarTablaAutoresBuscados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLimpiarTablaAutoresBuscadosActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel19Layout.createSequentialGroup()
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel23)
                            .addComponent(jLabel21)
                            .addComponent(jLabel20)
                            .addComponent(jLabel19)
                            .addComponent(jLabel22))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel19Layout.createSequentialGroup()
                                .addComponent(textFielCodigoAutorBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(btnBuscarAutor))
                            .addComponent(textFieldPrimerNombreAutorBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textFieldSegundoNombreAutorBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textFieldPrimerApellidoAutorBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(textFieldSegundoApellidoAutorBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE))
                .addContainerGap())
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addGap(97, 97, 97)
                .addComponent(btnAgregarAutor)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 89, Short.MAX_VALUE)
                .addComponent(btnLimpiarTablaAutoresBuscados)
                .addGap(84, 84, 84))
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19)
                    .addComponent(textFielCodigoAutorBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnBuscarAutor))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel20)
                    .addComponent(textFieldPrimerNombreAutorBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel21)
                    .addComponent(textFieldSegundoNombreAutorBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22)
                    .addComponent(textFieldPrimerApellidoAutorBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel23)
                    .addComponent(textFieldSegundoApellidoAutorBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnAgregarAutor)
                    .addComponent(btnLimpiarTablaAutoresBuscados))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel18.add(jPanel19, java.awt.BorderLayout.EAST);

        jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder("Autores del Libro"));

        tablaAutoresAgregados.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Codigo", "Nombre"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane7.setViewportView(tablaAutoresAgregados);

        btnQuitarAutor.setText("Quitar");
        btnQuitarAutor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnQuitarAutorActionPerformed(evt);
            }
        });

        btnLimpiarTablaAutoresAgregados.setText("Limpiar");
        btnLimpiarTablaAutoresAgregados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLimpiarTablaAutoresAgregadosActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
        jPanel20.setLayout(jPanel20Layout);
        jPanel20Layout.setHorizontalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel20Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createSequentialGroup()
                .addGap(78, 78, 78)
                .addComponent(btnQuitarAutor)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 127, Short.MAX_VALUE)
                .addComponent(btnLimpiarTablaAutoresAgregados)
                .addGap(78, 78, 78))
        );
        jPanel20Layout.setVerticalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel20Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnLimpiarTablaAutoresAgregados)
                    .addComponent(btnQuitarAutor))
                .addContainerGap(173, Short.MAX_VALUE))
        );

        jPanel18.add(jPanel20, java.awt.BorderLayout.WEST);

        jPanel13.add(jPanel18);

        jTabbedPane1.addTab("Autores", jPanel13);

        jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Area de Conocimiento", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
        jPanel21.setLayout(new java.awt.BorderLayout());

        jPanel22.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabel24.setText("Codigo:");

        textFieldCodigoAreaBuscar.setColumns(15);

        jLabel25.setText("Nombre:");

        textFieldNombreAreaBuscar.setColumns(15);

        btnBuscarArea.setText("Buscar");
        btnBuscarArea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarAreaActionPerformed(evt);
            }
        });

        tablaAreasBuscadas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Codigo", "Nombre"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane8.setViewportView(tablaAreasBuscadas);

        btnAgregarArea.setText("Agregar");
        btnAgregarArea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgregarAreaActionPerformed(evt);
            }
        });

        btnLimpiarTablaAreasBuscadas.setText("Limpiar");
        btnLimpiarTablaAreasBuscadas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLimpiarTablaAreasBuscadasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);
        jPanel22.setLayout(jPanel22Layout);
        jPanel22Layout.setHorizontalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel22Layout.createSequentialGroup()
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel22Layout.createSequentialGroup()
                        .addGap(49, 49, 49)
                        .addComponent(btnAgregarArea)
                        .addGap(95, 95, 95)
                        .addComponent(btnLimpiarTablaAreasBuscadas))
                    .addGroup(jPanel22Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jScrollPane8, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel22Layout.createSequentialGroup()
                                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel25)
                                    .addComponent(jLabel24))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel22Layout.createSequentialGroup()
                                        .addComponent(textFieldCodigoAreaBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(btnBuscarArea))
                                    .addComponent(textFieldNombreAreaBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel22Layout.setVerticalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel22Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel24)
                    .addComponent(textFieldCodigoAreaBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnBuscarArea))
                .addGap(18, 18, 18)
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel25)
                    .addComponent(textFieldNombreAreaBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnAgregarArea)
                    .addComponent(btnLimpiarTablaAreasBuscadas))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        jPanel21.add(jPanel22, java.awt.BorderLayout.EAST);

        jPanel23.setBorder(javax.swing.BorderFactory.createTitledBorder("Area de Conocimiento del Libro"));

        tablaAreasAgregadas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Codigo", "Nombre"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane9.setViewportView(tablaAreasAgregadas);

        btnQuitarArea.setText("Quitar");
        btnQuitarArea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnQuitarAreaActionPerformed(evt);
            }
        });

        btnLimpiarTablaAreasAgregadas.setText("Limpiar");
        btnLimpiarTablaAreasAgregadas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLimpiarTablaAreasAgregadasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
        jPanel23.setLayout(jPanel23Layout);
        jPanel23Layout.setHorizontalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel23Layout.createSequentialGroup()
                        .addGap(77, 77, 77)
                        .addComponent(btnQuitarArea)
                        .addGap(150, 150, 150)
                        .addComponent(btnLimpiarTablaAreasAgregadas))
                    .addGroup(jPanel23Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel23Layout.setVerticalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnQuitarArea)
                    .addComponent(btnLimpiarTablaAreasAgregadas))
                .addContainerGap(59, Short.MAX_VALUE))
        );

        jPanel21.add(jPanel23, java.awt.BorderLayout.WEST);

        jPanel15.add(jPanel21);

        jTabbedPane1.addTab("Area de Conocimiento", jPanel15);

        jPanel24.setBorder(javax.swing.BorderFactory.createTitledBorder("Palabras Clave"));

        jLabel26.setText("Palabra Clave:");

        textFieldPalabraBuscar.setColumns(15);

        btnAgregarPalabra.setText("Agregar");
        btnAgregarPalabra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAgregarPalabraActionPerformed(evt);
            }
        });

        tablaPalabrasAgregadas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "ID", "Nombre"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane10.setViewportView(tablaPalabrasAgregadas);

        btnQuitarPalabra.setText("Quitar");
        btnQuitarPalabra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnQuitarPalabraActionPerformed(evt);
            }
        });

        btnLimpiarTablaPalabrasAgregadas.setText("Limpiar");
        btnLimpiarTablaPalabrasAgregadas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLimpiarTablaPalabrasAgregadasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel25Layout = new javax.swing.GroupLayout(jPanel25);
        jPanel25.setLayout(jPanel25Layout);
        jPanel25Layout.setHorizontalGroup(
            jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel25Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jScrollPane10, javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel25Layout.createSequentialGroup()
                        .addComponent(jLabel26)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(textFieldPalabraBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(btnAgregarPalabra)))
                .addContainerGap(21, Short.MAX_VALUE))
            .addGroup(jPanel25Layout.createSequentialGroup()
                .addGap(85, 85, 85)
                .addComponent(btnQuitarPalabra)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 143, Short.MAX_VALUE)
                .addComponent(btnLimpiarTablaPalabrasAgregadas)
                .addGap(94, 94, 94))
        );
        jPanel25Layout.setVerticalGroup(
            jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel25Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel26)
                    .addComponent(textFieldPalabraBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnAgregarPalabra))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnQuitarPalabra)
                    .addComponent(btnLimpiarTablaPalabrasAgregadas))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel24.add(jPanel25);

        jPanel14.add(jPanel24);

        jTabbedPane1.addTab("Palabras Clave", jPanel14);

        jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Libro", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));

        jLabel14.setText("ISBN:");

        textFieldISBN.setColumns(15);

        jLabel15.setText("Editorial:");

        textFieldEditorial.setColumns(10);
        textFieldEditorial.setEditable(false);

        btnEditorial.setText("...");
        btnEditorial.setToolTipText("Buscar");
        btnEditorial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditorialActionPerformed(evt);
            }
        });

        textFieldTitulo.setColumns(15);

        jLabel16.setText("Titulo:");

        jLabel17.setText("Año Publicacion:");

        textFieldAnoPublicacion.setColumns(10);
        textFieldAnoPublicacion.setEditable(false);

        btnCalendario.setText("...");
        btnCalendario.setToolTipText("Buscar");
        btnCalendario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCalendarioActionPerformed(evt);
            }
        });

        textFieldIdioma.setColumns(15);

        jLabel18.setText("Idioma:");

        btnAceptar.setText("Aceptar");
        btnAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAceptarActionPerformed(evt);
            }
        });

        btnCancelar.setText("Cancelar");
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel14)
                    .addComponent(jLabel15)
                    .addComponent(jLabel16)
                    .addComponent(jLabel17)
                    .addComponent(jLabel18))
                .addGap(53, 53, 53)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(textFieldIdioma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addComponent(textFieldAnoPublicacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnCalendario))
                    .addComponent(textFieldISBN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addComponent(textFieldEditorial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnEditorial))
                    .addComponent(textFieldTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()
                .addContainerGap(63, Short.MAX_VALUE)
                .addComponent(btnAceptar)
                .addGap(54, 54, 54)
                .addComponent(btnCancelar)
                .addGap(60, 60, 60))
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(textFieldISBN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel15)
                    .addComponent(textFieldEditorial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEditorial, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(textFieldTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel17)
                    .addComponent(textFieldAnoPublicacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnCalendario, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel18)
                    .addComponent(textFieldIdioma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnCancelar)
                    .addComponent(btnAceptar))
                .addGap(22, 22, 22))
        );

        jPanel16.add(jPanel17);

        jPanel12.add(jPanel16);

        jTabbedPane1.addTab("Libro", jPanel12);

        add(jTabbedPane1, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void btnBuscarAutorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarAutorActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.buscarAutor();
    }//GEN-LAST:event_btnBuscarAutorActionPerformed

    private void btnAgregarAutorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregarAutorActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.agregarAutor();
    }//GEN-LAST:event_btnAgregarAutorActionPerformed

    private void btnLimpiarTablaAutoresBuscadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLimpiarTablaAutoresBuscadosActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.limpiarTabla(tablaAutoresBuscados);
    }//GEN-LAST:event_btnLimpiarTablaAutoresBuscadosActionPerformed

    private void btnQuitarAutorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnQuitarAutorActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.quitarAutor();
    }//GEN-LAST:event_btnQuitarAutorActionPerformed

    private void btnLimpiarTablaAutoresAgregadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLimpiarTablaAutoresAgregadosActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.limpiarTabla(tablaAutoresAgregados);
    }//GEN-LAST:event_btnLimpiarTablaAutoresAgregadosActionPerformed

    private void btnBuscarAreaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarAreaActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.buscarArea();
    }//GEN-LAST:event_btnBuscarAreaActionPerformed

    private void btnAgregarAreaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregarAreaActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.agregarArea();
    }//GEN-LAST:event_btnAgregarAreaActionPerformed

    private void btnLimpiarTablaAreasBuscadasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLimpiarTablaAreasBuscadasActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.limpiarTabla(tablaAreasBuscadas);
    }//GEN-LAST:event_btnLimpiarTablaAreasBuscadasActionPerformed

    private void btnQuitarAreaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnQuitarAreaActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.quitarArea();
    }//GEN-LAST:event_btnQuitarAreaActionPerformed

    private void btnLimpiarTablaAreasAgregadasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLimpiarTablaAreasAgregadasActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.limpiarTabla(tablaAreasAgregadas);
    }//GEN-LAST:event_btnLimpiarTablaAreasAgregadasActionPerformed

    private void btnAgregarPalabraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregarPalabraActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.agregarPalabra();
    }//GEN-LAST:event_btnAgregarPalabraActionPerformed

    private void btnQuitarPalabraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnQuitarPalabraActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.quitarPalabra();
    }//GEN-LAST:event_btnQuitarPalabraActionPerformed

    private void btnLimpiarTablaPalabrasAgregadasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLimpiarTablaPalabrasAgregadasActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.limpiarTabla(tablaPalabrasAgregadas);
    }//GEN-LAST:event_btnLimpiarTablaPalabrasAgregadasActionPerformed

    private void btnEditorialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditorialActionPerformed
        // TODO add your handling code here:
        ventanaBuscarEditorial.setLocationRelativeTo(null);
        ventanaBuscarEditorial.pack();
        ventanaBuscarEditorial.setResizable(false);
        ventanaBuscarEditorial.setVisible(true);
    }//GEN-LAST:event_btnEditorialActionPerformed

    private void btnBuscarEditorialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarEditorialActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.buscarEditorial();
    }//GEN-LAST:event_btnBuscarEditorialActionPerformed

    private void btnSeleccionarEditorialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSeleccionarEditorialActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.seleccionarEditorial();
    }//GEN-LAST:event_btnSeleccionarEditorialActionPerformed

    private void btnCalendarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCalendarioActionPerformed
        // TODO add your handling code here:
        panelCalendario.add(calendario);
        ventanaFechaPublicacion.setLocationRelativeTo(null);
        ventanaFechaPublicacion.pack();
        ventanaFechaPublicacion.setResizable(false);
        ventanaFechaPublicacion.setVisible(true);
    }//GEN-LAST:event_btnCalendarioActionPerformed

    private void btnSeleccionarFechaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSeleccionarFechaActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.seleccionarFecha();
    }//GEN-LAST:event_btnSeleccionarFechaActionPerformed

    private void btnAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAceptarActionPerformed
        // TODO add your handling code here:
        controlRegistrarLibro.registrarLibro();
    }//GEN-LAST:event_btnAceptarActionPerformed

    private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed
        // TODO add your handling code here:
        textFielCodigoAutorBuscar.setText("");
        textFieldAnoPublicacion.setText("");
        textFieldBuscarEditorial.setText("");
        textFieldCodigoAreaBuscar.setText("");
        textFieldEditorial.setText("");
        textFieldISBN.setText("");
        textFieldIdioma.setText("");
        textFieldNombreAreaBuscar.setText("");
        textFieldPalabraBuscar.setText("");
        textFieldPrimerApellidoAutorBuscar.setText("");
        textFieldPrimerNombreAutorBuscar.setText("");
        textFieldSegundoApellidoAutorBuscar.setText("");
        textFieldSegundoNombreAutorBuscar.setText("");
        textFieldTitulo.setText("");
        controlRegistrarLibro.limpiarTabla(tablaAreasAgregadas);
        controlRegistrarLibro.limpiarTabla(tablaAreasBuscadas);
        controlRegistrarLibro.limpiarTabla(tablaAutoresAgregados);
        controlRegistrarLibro.limpiarTabla(tablaAutoresBuscados);
        controlRegistrarLibro.limpiarTabla(tablaEditorialesBuscadas);
        controlRegistrarLibro.limpiarTabla(tablaPalabrasAgregadas);
    }//GEN-LAST:event_btnCancelarActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAceptar;
    private javax.swing.JButton btnAgregarArea;
    private javax.swing.JButton btnAgregarAutor;
    private javax.swing.JButton btnAgregarPalabra;
    private javax.swing.JButton btnBuscarArea;
    private javax.swing.JButton btnBuscarAutor;
    private javax.swing.JButton btnBuscarEditorial;
    private javax.swing.JButton btnCalendario;
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnEditorial;
    private javax.swing.JButton btnLimpiarTablaAreasAgregadas;
    private javax.swing.JButton btnLimpiarTablaAreasBuscadas;
    private javax.swing.JButton btnLimpiarTablaAutoresAgregados;
    private javax.swing.JButton btnLimpiarTablaAutoresBuscados;
    private javax.swing.JButton btnLimpiarTablaPalabrasAgregadas;
    private javax.swing.JButton btnQuitarArea;
    private javax.swing.JButton btnQuitarAutor;
    private javax.swing.JButton btnQuitarPalabra;
    private javax.swing.JButton btnSeleccionarEditorial;
    private javax.swing.JButton btnSeleccionarFecha;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel24;
    private javax.swing.JPanel jPanel25;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JPanel panelCalendario;
    public javax.swing.JTable tablaAreasAgregadas;
    public javax.swing.JTable tablaAreasBuscadas;
    public javax.swing.JTable tablaAutoresAgregados;
    public javax.swing.JTable tablaAutoresBuscados;
    public javax.swing.JTable tablaEditorialesBuscadas;
    public javax.swing.JTable tablaPalabrasAgregadas;
    public javax.swing.JTextField textFielCodigoAutorBuscar;
    public javax.swing.JTextField textFieldAnoPublicacion;
    public javax.swing.JTextField textFieldBuscarEditorial;
    public javax.swing.JTextField textFieldCodigoAreaBuscar;
    public javax.swing.JTextField textFieldEditorial;
    public javax.swing.JTextField textFieldISBN;
    public javax.swing.JTextField textFieldIdioma;
    public javax.swing.JTextField textFieldNombreAreaBuscar;
    public javax.swing.JTextField textFieldPalabraBuscar;
    public javax.swing.JTextField textFieldPrimerApellidoAutorBuscar;
    public javax.swing.JTextField textFieldPrimerNombreAutorBuscar;
    public javax.swing.JTextField textFieldSegundoApellidoAutorBuscar;
    public javax.swing.JTextField textFieldSegundoNombreAutorBuscar;
    public javax.swing.JTextField textFieldTitulo;
    public javax.swing.JFrame ventanaBuscarEditorial;
    private javax.swing.JFrame ventanaFechaPublicacion;
    // End of variables declaration//GEN-END:variables

}
